﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GlobalConfiguration.aspx.cs"
    Inherits="Admin_AdminUser_GlobalConfiguration" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>全局配置</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="Container">
        <dxtc:ASPxPageControl ID="GlobalPageControl" runat="server" ActiveTabIndex="1" 
            Width="100%">
            <TabPages>
                <dxtc:TabPage Text="系统设置">
                    <ContentCollection>
                        <dxw:ContentControl runat="server">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        Url重写：
                                    </td>
                                    <td>
                                        <dxe:ASPxRadioButton ID="rbtnOpen" runat="server" GroupName="0" Text="开启" Checked="True">
                                        </dxe:ASPxRadioButton>
                                        <dxe:ASPxRadioButton ID="rbtnClose" runat="server" GroupName="0" Text="关闭">
                                        </dxe:ASPxRadioButton>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        收货地址最多保存条数：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtReciveAddress" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *输入值应大于0小于10</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtReciveAddress"
                                            ErrorMessage="此为必填项" ValidationGroup="0"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txtReciveAddress"
                                            Display="Dynamic" ErrorMessage="请输入1-10范围内的数字" MaximumValue="10" MinimumValue="1"
                                            Type="Integer" ValidationGroup="0"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        允许最大附件(KB)：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMaximumAttachment" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *输入值应大于0小于10240</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtMaximumAttachment"
                                            ErrorMessage="此为必填项" ValidationGroup="0"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtMaximumAttachment"
                                            Display="Dynamic" ErrorMessage="请输入1-10240范围内的数字" MaximumValue="10240" MinimumValue="1"
                                            Type="Integer" ValidationGroup="0"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        缓存存活时间(秒)：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtCacheSurvival" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *输入值应大于0小于6000</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCacheSurvival"
                                            ErrorMessage="此为必填项" ValidationGroup="0"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="txtCacheSurvival"
                                            Display="Dynamic" ErrorMessage="请输入1-6000范围内的数字" MaximumValue="6000" MinimumValue="1"
                                            Type="Integer" ValidationGroup="0"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商品默认图片：
                                    </td>
                                    <td>
                                        <asp:FileUpload ID="fupGoodsDefaultPic" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="fupGoodsDefaultPic"
                                            ErrorMessage="此为必填项" ValidationGroup="0"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <dxe:ASPxButton ID="btnModifySystemSetup" runat="server" Text="提交表单" 
                                            OnClick="btnModifySystemSetup_Click" ValidationGroup="0">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        <dxe:ASPxButton ID="btnResetSystemSetup" runat="server" Text="重置表单" 
                                            OnClick="btnResetSystemSetup_Click" ValidationGroup="0">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </dxw:ContentControl>
                    </ContentCollection>
                </dxtc:TabPage>
                <dxtc:TabPage Text="基本信息">
                    <ContentCollection>
                        <dxw:ContentControl runat="server">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        商城名称：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallName" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallName"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城标题：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallTitle" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallTitle"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城关键字：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallKeyWords" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallKeyWords"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城简单描述
                                    </td>
                                    <td>
                                        <dxe:ASPxMemo ID="txtMallDescription" runat="server" Height="50px" 
                                            Width="170px">
                                        </dxe:ASPxMemo>
                                    </td>
                                    <td>
                                        *必填</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" 
                                            ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallDescription"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城Logo：
                                    </td>
                                    <td>
                                        <asp:FileUpload ID="fupLogo" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        ICP证书号：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtICPCertificateNo" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtICPCertificateNo"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城所在地：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallLocation" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallLocation"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城详细地址：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallAddress" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallAddress"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        邮编：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtMallPostCode" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtMallPostCode"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                            Display="Dynamic" ErrorMessage="邮编格式不正确" ValidationExpression="\d{6}" 
                                            ValidationGroup="1" ControlToValidate="txtMallPostCode"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        电话：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtTel" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            Display="Dynamic" ErrorMessage="电话号码格式不正确" 
                                            ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}" ValidationGroup="1" 
                                            ControlToValidate="txtTel"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        E-mail：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtEmail" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                            Display="Dynamic" ErrorMessage="Email格式不正确" 
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                            ValidationGroup="1" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        每页商品显示数量：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtProductNumPerPage" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator30" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtProductNumPerPage"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        商城状态：
                                    </td>
                                    <td>
                                        <dxe:ASPxRadioButton ID="rbtnMallOpen" runat="server" GroupName="1" Text="开启" Checked="True">
                                        </dxe:ASPxRadioButton>
                                        <dxe:ASPxRadioButton ID="rbtnMallClose" runat="server" GroupName="1" Text="关闭">
                                        </dxe:ASPxRadioButton>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        关闭原因：
                                    </td>
                                    <td>
                                        <dxe:ASPxMemo ID="txtCloseReason" runat="server" Height="50px" Width="170px">
                                        </dxe:ASPxMemo>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator31" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtCloseReason"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热门搜索：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtTopSearch" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator32" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtTopSearch"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <dxe:ASPxButton ID="btnModifyBaseInfomation" runat="server" Text="提交表单" 
                                            OnClick="btnModifyBaseInfomation_Click">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        <dxe:ASPxButton ID="btnResetBaseInfomation" runat="server" Text="重置表单" 
                                            OnClick="btnResetBaseInfomation_Click" ValidationGroup="1">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </dxw:ContentControl>
                    </ContentCollection>
                </dxtc:TabPage>
                <dxtc:TabPage Text="Server">
                    <ContentCollection>
                        <dxw:ContentControl runat="server">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        服务器地址：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtServerIP" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator33" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="2" 
                                            ControlToValidate="txtServerIP"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        服务器端口：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtServerPort" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator34" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="2" 
                                            ControlToValidate="txtServerPort"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        邮件服务器：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtEmailServer" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator35" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="2" 
                                            ControlToValidate="txtEmailServer"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        邮件账号：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtEmailAccount" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator36" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtEmailAccount"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        邮件密码：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtEmailPassWord" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator37" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtEmailPassWord"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        邮件编码：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtCode" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator38" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtCode"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        测试邮件服务器：
                                    </td>
                                    <td>
                                        <dxe:ASPxTextBox ID="txtTestEmailServer" runat="server" Width="170px">
                                        </dxe:ASPxTextBox>
                                    </td>
                                    <td>
                                        *必填项</td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator39" runat="server" 
                                            Display="Dynamic" ErrorMessage="此为必填项" ValidationGroup="1" 
                                            ControlToValidate="txtTestEmailServer"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <dxe:ASPxButton ID="btnModifyServer" runat="server" Text="提交表单" 
                                            OnClick="btnModifyServer_Click" ValidationGroup="2">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        <dxe:ASPxButton ID="btnResetServer" runat="server" Text="重置表单" 
                                             ValidationGroup="2" OnClick="btnResetServer_Click">
                                        </dxe:ASPxButton>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </dxw:ContentControl>
                    </ContentCollection>
                </dxtc:TabPage>
            </TabPages>
        </dxtc:ASPxPageControl>
    </div>
    </form>
</body>
</html>
